#include<stdio.h>
#include<malloc.h>

typedef struct 
{
    int data;
    struct LNode *next;
}LNode,*Llistlink;

typedef struct 
{
    char listname[25];
    int length;
    Listlink data[N];
}Llist,*Llistlink;

void insert(Llistlink insertlist,int x)
{
    if(insertlist->data!=NULL||insertlist->data>=x)
    {
        insertlist->length=insertlist->length+1;
        insertlist=realloc(insertlist->data,insertlist->length*sizeof(int));
    }
    else insert()
}

int main()
{
    int n,k,x;
    Llist insertlist;
    insertlist.length=0;
    printf("请输入插入模型数据大小：\n");
    scanf("%d",&n);
    insertlist.data=malloc(n*sizeof(int));
    printf("请输入插入模型数据样本：\n");
    for(int i=0;i<n;i++)
    {
        scanf("%d",&insertlist.data[i]);
        insertlist.length++;
    }
    printf("请输入需要插入的数据:");
    scanf("%d",&x);
    insert(&insertlist,x);
}